#ifndef MYSCHEDULETABLE_H
#define MYSCHEDULETABLE_H

#include "mytablewidget.h"


#include <QWidget>
#include <QMenu>

class MyScheduleTable : public MyTableWidget
{
    Q_OBJECT
public:
    explicit MyScheduleTable(QWidget *parent = nullptr);

    void setScheduleHorizontalHeaderStyle(QFont headerFont, QString styleSheet, bool headFixed);

    void setScheduleTableWidgetStyle(void);

    void createItemAndSetStyle(int rowpos, int rowcount, int colpos, int colcount);

    void setScheduleItemStyle(QTableWidgetItem *pItem, Qt::ItemFlags flag, QBrush frontColor, QBrush backColor, QFont itemFont);

    void paintScheduleItem(int i, int j, QString text, QColor color);

    void createActions(int daycount, int membercount);

    void changeScheduleItem(QTableWidgetItem *pItem, int type);

signals:
    void signal_changeScheduleWorkAction_triggered(QPoint pos, int type);

private slots:
    void slot_menu_customContextMenuRequested(const QPoint &pos);

private:
     QMenu * pMenu;
     QPoint menuPos;
     int daycount;
     int membercount;
};

#endif // MYSCHEDULETABLE_H
